home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group98a.txt
/
000000_icon-group-sender _Thu Jan 8 12:46:37 1998.msg
next >
Wrap
Internet Message Format
|
2000-09-20
|
2KB
Return-Path: <icon-group-sender>
Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
by baskerville.CS.Arizona.EDU (8.8.7/8.8.7) with SMTP id MAA24593
for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Thu, 8 Jan 1998 12:46:37 -0700 (MST)
Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
id AA16979; Thu, 8 Jan 1998 12:46:37 -0700
Date: Thu, 8 Jan 1998 08:33:34 -0700
From: swampler@noao.edu (Steve Wampler)
Subject: Stripping blank and comment lines
To: icon-group@optima.CS.Arizona.EDU
Message-Id: <swampler-9800081533.AA0009292@orpheus.gemini.edu>
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
Content-Length: 1007
Since there hasn't been much traffic here recently, I thought I'd pose a
little problem for people to play with. This isn't too hard, but there
are probably a number of interesting solutions.
I always here people bragging about lines of code (some brag about how
much, others about how little, no one brags about having just the right
amount...). Normally, this goes something like, "Well, if you strip out
blank lines and comments, there's (still/only) XXXX lines of code."
So:
Write a program that strips out blank lines and comment lines (lines
that only contain a comment) from Icon programs. The program should
accept 0 or more file names as arguments and copy the files to standard
output with all blank and comment lines removed. If no arguments are
given, then the program should read from standard input.
--
Steve Wampler - swampler@gemini.edu [Gemini 8m Telescopes Project (under AURA)]
O Sibile, si ergo, fortibus es inero.
Nobile, demis trux. Demis phulla causan dux.